package com.order.fegin;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


@FeignClient(
        name = "account-server",
        path = "/account",
        contextId = "account-feign"
)
public interface AccountFeignClient {

    @PostMapping("/reduction/amount")
    void reductionAmount(@RequestBody AccountParam from);
}
